﻿@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Index</h2>
<h1>hello mvc</h1>
@*@{
    foreach (var item in Model)
    {
        <h1>@item</h1>
    }
}
@foreach (var item in Model) {
    <h1>@item</h1> 
}
@foreach (var item in ViewData.Model)
{
    <h1>@item</h1>
}*@
<form action="/" method="get">
    <button>提交</button>
</form>